<h3>Mission</h3>	

<% for column in Mission.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @mission.send(column.name) %>
</p>
<% end %>

<p>
	<b>Type:</b> <%= @mission.mission_type.name %>
</p>
<p>
	<b>Comms:</b> <%= @mission.comms_type.name %>
</p>

<table id="attendees">
	<tr>
		<th>Attendee</th>
		<th>Comment</th>
	</tr>
<% for reg in @mission.mission_registrations %>
	<tr>
		<td align="left">
			<% if reg.is_leader == 1 %>
			<span id="leader">*</span>
			<% end %>
			<span id="char_name"><%= reg.character.name %></span> 
			(<span id="member_name"><%= reg.member.name%></span>)
		</td>
		<td align="left">
			<%= reg.comment %>
		</td>
	</tr>
<% end %>
</table>

<% if @member.leads_mission?(@mission) or @member.can_edit_any_mission == 1%>
<p id="edit">
<%= link_to 'Edit', :action => 'edit', :id => @mission %>
</p>
<% end %>

<% if @my_reg.nil? %>
<p id="register">
	<%= link_to 'Register for Event', :controller => 'mission_registrations', :action => 'new', :id => @mission %>
</p>
<% end %>

<p id="back">
<%= link_to 'Back', :controller => 'command', :action => 'index' %>
</p>
